package pl.edu.pw.elka.GIS.UI;

import com.trolltech.qt.gui.*;

public class GenerateDialog extends QDialog {

    Ui_generateDialog ui = new Ui_generateDialog();

    public GenerateDialog() {
        ui.setupUi(this);
        
        ui.okButton.clicked.connect(this,"accept()");
        ui.cancelButton.clicked.connect(this,"reject()"); 
    }
    
    public String getName()
	{
		return ui.name.text();
	}
    
    public int getVertexCount()
	{
		return ui.vertexCount.value();
	}

    public int getEdgesCount()
    {
    	return ui.edgesCount.value();
    }
    
    public void setName(String name)
	{
		ui.name.setText(name);
	}
    
    public void setVertexCount(int vertexCount)
	{
		ui.vertexCount.setValue(vertexCount);
	}

    public void setEdgesCount(int edgesCount)
    {
    	ui.edgesCount.setValue(edgesCount);
    }
        
}
